package com.woniuxy.user.mapper;

import com.woniuxy.user.dto.DepartmentDto;
import com.woniuxy.user.entity.Department;
import com.woniuxy.user.vo.DepartmentVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DepartmentMapper {
    List<Department> getDepartmentList(DepartmentVo departmentVo);

    int addDepartment(Department department);

    int editDepartment(Department department);

    int enableDepartment(Integer id);

    int disableDepartment(Integer id);

    int deleteDepartment(Integer id);

    int checkName(String name);

    List<Department> getAllDepartmentList();

    List<DepartmentDto> getDepartmentListForEmployee();

    int increaseDepartmentNum(Integer id);

    int decreaseDepartmentNum(Integer id);
}
